package cn.iocoder.yudao.module.data.controller.admin.dstable.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;

@Schema(description = "管理后台 - table数据集新增/修改 Request VO")
@Data
public class DsTableSaveReqVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "22411")
    private Long id;

    @Schema(description = "名称", example = "张三")
    private String name;

    @Schema(description = "描述", example = "你猜")
    private String description;


    @Schema(description = "物理表名", example = "李四")
    private String tableName;

    @Schema(description = "数据源ID", example = "16363")
    private Long datasourceId;

    @Schema(description = "数据集ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "10525")
    @NotNull(message = "数据集ID不能为空")
    private Long datasetGroupId;

    @Schema(description = "db,sql,union,excel,api", example = "1")
    private String type;

    @Schema(description = "表原始信息,表名,sql等")
    private String info;

    @Schema(description = "SQL参数")
    private String sqlVariableDetails;

}